<?php /*a:1:{s:68:"D:\phpStudy\WWW\learning_tp5\application/index/view\demo7\test2.html";i:1534073801;}*/ ?>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<!--输出常规值-->
<?php echo htmlentities($titles); ?><br>
<!--输出数组-->
<?php echo htmlentities($goods['id']); ?><br>
<?php echo htmlentities($goods['type']); ?><br>
<!--输出对象-->
<?php echo htmlentities($info->course); ?><br>
<?php echo htmlentities($info->classnum); ?><br>
<!--PHP常量输出-->
<?php echo htmlentities(SITE_NAME); ?><br>
<?php echo htmlentities(PHP_VERSION); ?><br>
<?php echo htmlentities(PHP_OS); ?><br>
<!--PHP系统变量-->
<?php echo htmlentities($_SERVER['PHP_SELF']); ?><br>
或<br>
<?php echo htmlentities(app('request')->server('php_self')); ?><br>
<?php echo htmlentities(app('request')->server('get.name')); ?><br>
<!--PHP配置参数-->
<?php echo htmlentities(app('config')->get('database.hostname')); ?><br>

<!--输出请求的变量-->
<?php echo htmlentities(app('request')->get('name')); ?><br>
<?php echo htmlentities(app('request')->param('name')); ?><br>
// 获取URL访问的ROOT地址<br>
<?php echo htmlentities(app('request')->root()); ?><br>
// 获取URL访问的ROOT地址<br>
<?php echo htmlentities(app('request')->root(true)); ?><br>
// 获取URL地址 不含QUERY_STRING<br>
<?php echo htmlentities(app('request')->baseurl()); ?><br>
// 获取URL地址中的 PATH_INFO 信息<br>
<?php echo htmlentities(app('request')->pathinfo()); ?><br>
// 获取URL地址中的 PATH_INFO 信息，不含后缀<br>
<?php echo htmlentities(app('request')->path()); ?><br>
<?php echo htmlentities(app('request')->ip()); ?><br>
<?php echo htmlentities(app('request')->method()); ?><br>
</body>
</html>